#ifndef _DEF_H_
#define _DEF_H_

#define VIDEO_720p
// #define VIDEO_VGA

#ifdef VIDEO_720p
#define VIDEO_HEIGHT 720
#define VIDEO_WIDTH  1280
#elif defined VIDEO_VGA
#define VIDEO_HEIGHT 480
#define VIDEO_WIDTH  640
#endif

#define SAMPLERATE	16000
#define CHANNELS	1
#define SAMPLESIZE	2

#define PCM_CHUNK	200
#define CHUNK_CUT	16
#define DRAW_LINES	40
#define FPS			8

#define AUDIO_FRM_SIZE	(PCM_CHUNK * SAMPLESIZE * 10) // 60ms

typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;

#endif
